import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/user/login',
    method: 'post',
    desc: '用户登陆',
    data
  })
}

export function getCurrentUserInfo() {
  return request({
    url: '/user/currentUser/info',
    method: 'get',
    desc: '获取当前用户信息'
  })
}

export function logout() {
  return request({
    url: '/user/logout',
    method: 'post',
    desc: '用户登出'
  })
}

export function getDictConfig() {
  return request({
    url: '/test/config',
    method: 'get',
    desc: '获取用户测试配置信息'
  })
}
